<?php
namespace app\admin\controller;
use think\Db;

class Index extends Main
{  
    /**
     * 首页展示
    */
    public function index()
    {
        return $this->fetch();
    }
    /**
     * 桌面页
    */
    public function welcome()
    {
        return $this->fetch();
    }

    //参数配置
    public function config(){
        $request = $this->request;
        if($request->isPost()){
            $post     = $this->request->post();
            $rst = upConfig($post);
            if($rst){
                $this->success('修改成功');
            }else{
                $this->success('修改失败');
            }
        }else{
            $data = config('conf.');
            $this->assign('data',$data);
            return $this->fetch();
        }

    }
}
